//
//  Person.m
//  Oc03_属性
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "Person.h"

@implementation Person

#pragma mark - init
-(instancetype)initWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age{
    self = [super init];
    if (self) {
        _name = name;
        _age = age;
        _sex = sex;
    }
    return self;
}
#pragma mark - 构造器
+ (instancetype)person{

    return [Person alloc];
};
+ (instancetype)personWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age{
    return [[Person alloc] initWithName:name sex:sex age:age];
}
@end
